module.exports={
  goToSchool: function(e){
    if (e.target.id == "3-0-1") {
      wx.redirectTo({
        url: '/pages/epi_3/request/request',
      })
    } else if (e.target.id == "4-0-1") {
      wx.redirectTo({
        url: '/pages/epi_4/audioGbam/audioGbam',
      })
    } else if (e.target.id == "4-0-2") {
      wx.redirectTo({
        url: '/pages/epi_4/recordPlay/recordPlay',
      })
    } else if (e.target.id == "4-0-3") {
      wx.redirectTo({
        url: '/pages/epi_4/fileOperate/fileOperate',
      })
    } else if (e.target.id == "4-0-4") {
      wx.redirectTo({
        url: '/pages/epi_4/canvas/canvas',
      })
    } else if (e.target.id == "5-0-1") {
        wx.redirectTo({
          url: '/pages/epi_5/animation/animation',
        })
    } else if (e.target.id == "5-0-2") {
        wx.redirectTo({
          url: '/pages/epi_5/login/login',
        })
    } else if (e.target.id == "5-0-3") {
        wx.redirectTo({
          url: '/pages/epi_5/map/map',
        })
    } else if (e.target.id == "5-0-4") {
        wx.redirectTo({
          url: '/pages/epi_5/socket/socket',
        })
    } 
  },

  goHome: function(e){
    if (e.target.id == "3-1-1") {
      wx.redirectTo({
        url: '/pages/epi_3/request/request',
      })
    } else if (e.target.id == "4-1-1") {
      wx.redirectTo({
        url: '/pages/epi_4/audioGbam/audioGbamWork',
      })
    } else if (e.target.id == "4-1-2") {
      wx.redirectTo({
        url: '/pages/epi_4/recordPlay/recordPlayWork',
      })
    } else if (e.target.id == "4-1-3") {
      wx.redirectTo({
        url: '/pages/epi_4/fileOperate/fileOperateWork',
      })
    } else if (e.target.id == "4-1-4") {
      wx.redirectTo({
        url: '/pages/epi_4/canvas/canvasWork',
      })
    } else if (e.target.id == "5-1-1") {
        wx.redirectTo({
          url: '/pages/epi_5/animation/animationWork',
        })
    } else if (e.target.id == "5-1-2") {
        wx.redirectTo({
          url: '/pages/epi_5/login/loginWork',
        })
    } else if (e.target.id == "5-1-3") {
        wx.redirectTo({
          url: '/pages/epi_5/map/mapWork',
        })
    } else if (e.target.id == "5-1-4") {
        wx.redirectTo({
          url: '/pages/epi_5/socket/socketWork',
        })
    }
  }
}